<%@page import="com.yymmarket.util.StringUtil,com.yymmarket.forum.bbs.*,com.yymmarket.forum.user.UserBean,com.yymmarket.forum.user.UserService,com.yymmarket.forum.util.*,com.yymmarket.forum.bbs.ContentBean,com.yymmarket.forum.bbs.BBSService,com.yymmarket.framework.WebAction"%><%@ 
page contentType="text/vnd.wap.wml;charset=utf-8"%><%
response.setHeader("Cache-Control","no-cache");
ContentAction webAction = new ContentAction(request,response);
int id = webAction.getParameterInt("id");
int fid = webAction.getParameterInt("fid");
BBSService bbs = BBSService.getInstance();

boolean flag = webAction.continuePost();
%><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><%
if(flag) {
%><card title="续写帖子成功" ontimer="<%=response.encodeURL("content.jsp?id="+id+"&amp;fid="+fid) %>">
<timer value="30"/>
<p>续写帖子成功<br/>
3秒之后自动跳转至帖子<br/>
<a href="content.jsp?id=<%=id %>&amp;fid=<%=fid %>">返回帖子</a><br/>
<a href="forum.jsp?id=<%=fid %>">返回<%=bbs.getBBSBeanById(fid).getTitle() %></a><br/>
</p>
</card>
<%}else {
	ContentService contentService = ContentService.getInstance();
	ContentBean bean = contentService.getContentById(id);
%><card title="续写帖子">
<p><%= BaseUtil.top(request,response) %><%=webAction.getAttributeEnter("msg")%>
内容:<%=StringUtil.toWml(bean.getContent()) %><br/>
续写:<br/>
<input type="text" name="c"/><br/>
<anchor>确定<go href="edit.jsp?id=<%=id%>&amp;fid=<%=fid %>" method="post">
<postfield name="content" value="$c" />
</go></anchor><br/>
<a href="editX.jsp?id=<%=id%>&amp;fid=<%=fid %>">使用WAP2.0方式编辑</a><br/>
<a href="forum.jsp?id=<%=id %>">&lt;&lt;返回<%=bbs.getBBSBeanById(fid).getTitle() %></a><br/>
<%= BaseUtil.bottom(request,response) %></p>
</card>
<%} %></wml>